import React from "react";
import { useRoutes } from "react-router";
import { BrowserRouter } from "react-router-dom";
import { ROUTER_LIST } from "./router";
const ROU=()=>{
    const App=()=>useRoutes(ROUTER_LIST)
    return(
        <BrowserRouter>
            <React.Suspense fallback={<div>加载中</div>}>
                <App/>
            </React.Suspense>
        </BrowserRouter>
    )
}
export default ROU